package com.itheima.comment.vo;

import com.itheima.comment.document.Comment;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class CommentVo extends Comment {
    private Integer operation; //1代表点赞

    public static CommentVo build(Comment comment){
        CommentVo commentVo = new CommentVo();
        BeanUtils.copyProperties(comment,commentVo);
        return commentVo;
    }
}
